package com.easylinkin.linkappapi.progress.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.progress.entity.ProgressIntegrateRef;
import com.easylinkin.linkappapi.progress.entity.vo.ProgressIntegrateRefVo;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * ProgressIntegrateRef表数据库访问层
 *
 * @author zhengwen
 * @date 2023/11/13
 */
public interface ProgressIntegrateRefMapper extends BaseMapper<ProgressIntegrateRef> {


    /**
     * 查询分页
     *
     * @param page        分页参数对象
     * @param appProgressIntegrateRef 过滤参数对象
     * @return 查询分页结果
     */
    IPage<ProgressIntegrateRef> selectPage(Page page, @Param("appProgressIntegrateRef") ProgressIntegrateRef appProgressIntegrateRef);

    /**
     * 查询单条
     *
     * @param id 主键id
     * @return 查询结果
     */
    ProgressIntegrateRef getOneById(@Param("id") Serializable id);

    int queryJoinModelNum(@Param("progressId") Long progressId);

  List<ProgressIntegrateRefVo> selectVoByProcessId(@Param("progressId") Long progressId ,@Param("integrateId") String integrateId);

  ProgressIntegrateRefVo selectVo(@Param("resourceId") String resourceId, @Param("planId") List<Long> planId ,@Param("integrateId") String integrateId);
}

